/*
 * SignalHandler.hpp
 *
 *  Created on: Dec 30, 2014
 *      Author: toti
 */

#ifndef SIGNALHANDLER_HPP_
#define SIGNALHANDLER_HPP_

#include <csignal>
#include <cstdint>

class SignalHandler{

private:

	static SignalHandler *signalHandlerInstance;

	static uint64_t signalStates;

	SignalHandler();

public:

	void registerSignal(int num);

	uint64_t getSignalState(uint64_t num);

	static void handleSignal(int num);

	static SignalHandler *instance();
};


#endif /* SIGNALHANDLER_HPP_ */
